<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
  <meta name="description" content="API docs for the MutableRectangle class from the dart:math library, for the Dart programming language.">
  <title>MutableRectangle class - dart:math library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:500,400i,400,300|Source+Sans+Pro:400,300,700" rel="stylesheet">
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="static-assets/github.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">
  
</head>

<body>

<div id="overlay-under-drawer"></div>

<header id="title">
  <button id="sidenav-left-toggle" type="button">&nbsp;</button>
  <ol class="breadcrumbs gt-separated dark hidden-xs">
    <li><a href="index.html">shake</a></li>
    <li><a href="dart-math/dart-math-library.html">dart:math</a></li>
    <li class="self-crumb">MutableRectangle<span class="signature">&lt;<wbr><span class="type-parameter">T extends <a href="dart-core/num-class.html">num</a></span>&gt;</span> class</li>
  </ol>
  <div class="self-name">MutableRectangle</div>
  <form class="search navbar-right" role="search">
    <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
  </form>
</header>

<main>

  <div id="dartdoc-sidebar-left" class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <header id="header-search-sidebar" class="hidden-l">
      <form class="search-sidebar" role="search">
        <input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
      </form>
    </header>
    
    <ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
      <li><a href="index.html">shake</a></li>
      <li><a href="dart-math/dart-math-library.html">dart:math</a></li>
      <li class="self-crumb">MutableRectangle<span class="signature">&lt;<wbr><span class="type-parameter">T extends <a href="dart-core/num-class.html">num</a></span>&gt;</span> class</li>
    </ol>
    
    <h5>dart:math library</h5>
    <ol>
      <li class="section-title"><a href="dart-math/dart-math-library.html#classes">Classes</a></li>
      <li><a href="dart-math/MutableRectangle-class.html">MutableRectangle</a></li>
      <li><a href="dart-math/Point-class.html">Point</a></li>
      <li><a href="dart-math/Random-class.html">Random</a></li>
      <li><a href="dart-math/Rectangle-class.html">Rectangle</a></li>
    
    
      <li class="section-title"><a href="dart-math/dart-math-library.html#constants">Constants</a></li>
      <li><a href="dart-math/e-constant.html">e</a></li>
      <li><a href="dart-math/ln2-constant.html">ln2</a></li>
      <li><a href="dart-math/ln10-constant.html">ln10</a></li>
      <li><a href="dart-math/log2e-constant.html">log2e</a></li>
      <li><a href="dart-math/log10e-constant.html">log10e</a></li>
      <li><a href="dart-math/pi-constant.html">pi</a></li>
      <li><a href="dart-math/sqrt1_2-constant.html">sqrt1_2</a></li>
      <li><a href="dart-math/sqrt2-constant.html">sqrt2</a></li>
    
    
      <li class="section-title"><a href="dart-math/dart-math-library.html#functions">Functions</a></li>
      <li><a href="dart-math/acos.html">acos</a></li>
      <li><a href="dart-math/asin.html">asin</a></li>
      <li><a href="dart-math/atan.html">atan</a></li>
      <li><a href="dart-math/atan2.html">atan2</a></li>
      <li><a href="dart-math/cos.html">cos</a></li>
      <li><a href="dart-math/exp.html">exp</a></li>
      <li><a href="dart-math/log.html">log</a></li>
      <li><a href="dart-math/max.html">max</a></li>
      <li><a href="dart-math/min.html">min</a></li>
      <li><a href="dart-math/pow.html">pow</a></li>
      <li><a href="dart-math/sin.html">sin</a></li>
      <li><a href="dart-math/sqrt.html">sqrt</a></li>
      <li><a href="dart-math/tan.html">tan</a></li>
    
    
    
    </ol>
  </div>

  <div id="dartdoc-main-content" class="col-xs-12 col-sm-9 col-md-8 main-content">
      <div><h1>MutableRectangle&lt;<wbr><span class="type-parameter">T extends num</span>&gt; class </h1></div>

    <section class="desc markdown">
      <p>A class for representing two-dimensional axis-aligned rectangles with mutable
properties.</p>
    </section>
    
    <section>
      <dl class="dl-horizontal">

        <dt>Implemented types</dt>
        <dd>
          <ul class="comma-separated clazz-relationships">
            <li><a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></li>
          </ul>
        </dd>



      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="MutableRectangle" class="callable">
          <span class="name"><a href="dart-math/MutableRectangle/MutableRectangle.html">MutableRectangle</a></span><span class="signature">(<span class="parameter" id="-param-left"><span class="type-annotation">T</span> <span class="parameter-name">left</span>, </span> <span class="parameter" id="-param-top"><span class="type-annotation">T</span> <span class="parameter-name">top</span>, </span> <span class="parameter" id="-param-width"><span class="type-annotation">T</span> <span class="parameter-name">width</span>, </span> <span class="parameter" id="-param-height"><span class="type-annotation">T</span> <span class="parameter-name">height</span></span>)</span>
        </dt>
        <dd>
          Create a mutable rectangle spanned by <code>(left, top)</code> and
<code>(left+width, top+height)</code>. <a href="dart-math/MutableRectangle/MutableRectangle.html">[...]</a>
        </dd>
        <dt id="MutableRectangle.fromPoints" class="callable">
          <span class="name"><a href="dart-math/MutableRectangle/MutableRectangle.fromPoints.html">MutableRectangle.fromPoints</a></span><span class="signature">(<span class="parameter" id="fromPoints-param-a"><span class="type-annotation"><a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="fromPoints-param-b"><span class="type-annotation"><a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">b</span></span>)</span>
        </dt>
        <dd>
          Create a mutable rectangle spanned by the points <code>a</code> and <code>b</code>; <a href="dart-math/MutableRectangle/MutableRectangle.fromPoints.html">[...]</a>
          <div class="constructor-modifier features">factory</div>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="height" class="property">
          <span class="name"><a href="dart-math/MutableRectangle/height.html">height</a></span>
          <span class="signature">&#8596; T</span>         
        </dt>
        <dd>
          The height of the rectangle.
                  <div class="features">read / write</div>
</dd>
        <dt id="left" class="property">
          <span class="name"><a href="dart-math/MutableRectangle/left.html">left</a></span>
          <span class="signature">&#8596; T</span>         
        </dt>
        <dd>
          The x-coordinate of the left edge. <a href="dart-math/MutableRectangle/left.html">[...]</a>
                  <div class="features">read / write</div>
</dd>
        <dt id="top" class="property">
          <span class="name"><a href="dart-math/MutableRectangle/top.html">top</a></span>
          <span class="signature">&#8596; T</span>         
        </dt>
        <dd>
          The y-coordinate of the left edge. <a href="dart-math/MutableRectangle/top.html">[...]</a>
                  <div class="features">read / write</div>
</dd>
        <dt id="width" class="property">
          <span class="name"><a href="dart-math/MutableRectangle/width.html">width</a></span>
          <span class="signature">&#8596; T</span>         
        </dt>
        <dd>
          The width of the rectangle.
                  <div class="features">read / write</div>
</dd>
        <dt id="bottom" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/bottom.html">bottom</a></span>
          <span class="signature">&#8594; T</span>         
        </dt>
        <dd class="inherited">
          The y-coordinate of the bottom edge.
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="bottomLeft" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/bottomLeft.html">bottomLeft</a></span>
          <span class="signature">&#8594; <a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>         
        </dt>
        <dd class="inherited">
          
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="bottomRight" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/bottomRight.html">bottomRight</a></span>
          <span class="signature">&#8594; <a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>         
        </dt>
        <dd class="inherited">
          
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="hashCode" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>         
        </dt>
        <dd class="inherited">
          The hash code for this object. <a href="dart-math/Rectangle/hashCode.html">[...]</a>
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="right" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/right.html">right</a></span>
          <span class="signature">&#8594; T</span>         
        </dt>
        <dd class="inherited">
          The x-coordinate of the right edge.
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>         
        </dt>
        <dd class="inherited">
          A representation of the runtime type of the object.
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="topLeft" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/topLeft.html">topLeft</a></span>
          <span class="signature">&#8594; <a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>         
        </dt>
        <dd class="inherited">
          
                  <div class="features">read-only, inherited</div>
</dd>
        <dt id="topRight" class="property inherited">
          <span class="name"><a href="dart-math/Rectangle/topRight.html">topRight</a></span>
          <span class="signature">&#8594; <a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>         
        </dt>
        <dd class="inherited">
          
                  <div class="features">read-only, inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="boundingBox" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/boundingBox.html">boundingBox</a></span><span class="signature">(<wbr><span class="parameter" id="boundingBox-param-other"><span class="type-annotation"><a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns a new rectangle which completely contains <code>this</code> and <code>other</code>.
                  <div class="features">inherited</div>
</dd>
        <dt id="containsPoint" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/containsPoint.html">containsPoint</a></span><span class="signature">(<wbr><span class="parameter" id="containsPoint-param-another"><span class="type-annotation"><a href="dart-math/Point-class.html">Point</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="dart-core/num-class.html">num</a></span>&gt;</span></span> <span class="parameter-name">another</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Tests whether <code>another</code> is inside or along the edges of <code>this</code>.
                  <div class="features">inherited</div>
</dd>
        <dt id="containsRectangle" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/containsRectangle.html">containsRectangle</a></span><span class="signature">(<wbr><span class="parameter" id="containsRectangle-param-another"><span class="type-annotation"><a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="dart-core/num-class.html">num</a></span>&gt;</span></span> <span class="parameter-name">another</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Tests whether <code>this</code> entirely contains <code>another</code>.
                  <div class="features">inherited</div>
</dd>
        <dt id="intersection" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/intersection.html">intersection</a></span><span class="signature">(<wbr><span class="parameter" id="intersection-param-other"><span class="type-annotation"><a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter">T</span>&gt;</span></span>
          </span>
                  </dt>
        <dd class="inherited">
          Computes the intersection of <code>this</code> and <code>other</code>. <a href="dart-math/Rectangle/intersection.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="intersects" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/intersects.html">intersects</a></span><span class="signature">(<wbr><span class="parameter" id="intersects-param-other"><span class="type-annotation"><a href="dart-math/Rectangle-class.html">Rectangle</a><span class="signature">&lt;<wbr><span class="type-parameter"><a href="dart-core/num-class.html">num</a></span>&gt;</span></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns true if <code>this</code> intersects <code>other</code>.
                  <div class="features">inherited</div>
</dd>
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
                  </dt>
        <dd class="inherited">
          Invoked when a non-existent method or property is accessed. <a href="dart-core/Object/noSuchMethod.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
        <dt id="toString" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          Returns a string representation of this object.
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor inherited" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator ==" class="callable inherited">
          <span class="name"><a href="dart-math/Rectangle/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="type-annotation">dynamic</span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
                  </dt>
        <dd class="inherited">
          The equality operator. <a href="dart-math/Rectangle/operator_equals.html">[...]</a>
                  <div class="features">inherited</div>
</dd>
      </dl>
    </section>




  </div> <!-- /.main-content -->

  <div id="dartdoc-sidebar-right" class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <ol>
      <li class="section-title"><a href="dart-math/MutableRectangle-class.html#constructors">Constructors</a></li>
      <li><a href="dart-math/MutableRectangle/MutableRectangle.html">MutableRectangle</a></li>
      <li><a href="dart-math/MutableRectangle/MutableRectangle.fromPoints.html">fromPoints</a></li>
    
      <li class="section-title">
        <a href="dart-math/MutableRectangle-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-math/MutableRectangle/height.html">height</a></li>
      <li><a href="dart-math/MutableRectangle/left.html">left</a></li>
      <li><a href="dart-math/MutableRectangle/top.html">top</a></li>
      <li><a href="dart-math/MutableRectangle/width.html">width</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/bottom.html">bottom</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/bottomLeft.html">bottomLeft</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/bottomRight.html">bottomRight</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/right.html">right</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/topLeft.html">topLeft</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/topRight.html">topRight</a></li>
    
      <li class="section-title inherited"><a href="dart-math/MutableRectangle-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/boundingBox.html">boundingBox</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/containsPoint.html">containsPoint</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/containsRectangle.html">containsRectangle</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/intersection.html">intersection</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/intersects.html">intersects</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/toString.html">toString</a></li>
    
      <li class="section-title inherited"><a href="dart-math/MutableRectangle-class.html#operators">Operators</a></li>
      <li class="inherited"><a href="dart-math/Rectangle/operator_equals.html">operator ==</a></li>
    
    
    
    </ol>
  </div><!--/.sidebar-offcanvas-->

</main>

<footer>
  <span class="no-break">
    shake 0.1.0
  </span>

  
</footer>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/highlight.pack.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>


</body>

</html>
